package com.example.guidedanimationdemo

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        step1.setOnClickListener{
            var intent =  Intent(this.applicationContext,AnimateActivity::class.java)
            intent.putExtra("type",1)
            startActivity(intent)
        }

        step2.setOnClickListener{
            var intent =  Intent(this.applicationContext,AnimateActivity::class.java)
            intent.putExtra("type",2)
            startActivity(intent)
        }
        step3.setOnClickListener{
            var intent =  Intent(this.applicationContext,AnimateActivity::class.java)
            intent.putExtra("type",3)
            startActivity(intent)
        }
        
    }
}